package com.woniu.controller;

import com.woniu.service.FlowerOrderItemService;
import com.woniu.util.JsonResult;
import com.woniu.vo.FlowerOrderItemVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program:
 * @ClassName:
 * @description:
 * @author: zgc
 * @date:
 * @Version 1.0
 **/
@RestController
@Slf4j
@RequestMapping("/flowerorderitem")
public class FlowerOrderItemController {
    @Resource
    private FlowerOrderItemService flowerOrderItemService;
    
    @RequestMapping("/selectFlowerOrderItemsByOrderId")
    public JsonResult<List<FlowerOrderItemVo>> selectFlowerOrderItemsByOrderId(String orderId) {
        List<FlowerOrderItemVo> list = flowerOrderItemService.selectFlowerOrderItemsByOrderId(orderId);
        return JsonResult.ok(200, list);
    }
}
